package so.wy.servicecenter.businessbed.service.hospital;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;
import so.wy.servicecenter.base.frame.baseopt.BaseOptService;
import so.wy.servicecenter.businessbed.dao.rdb.hospital.hospital_depart.HospitalDepartDAO;
import so.wy.servicecenter.businessbed.dao.rdb.hospital.hospital_depart.HospitalDepartDO;
import so.wy.servicecenter.businessbed.service.hospital.dto.HospitalDepartDTO;

@Service
@Scope("prototype")
public class HospitalDepartService extends BaseOptService<HospitalDepartDAO, HospitalDepartDO, HospitalDepartDTO> {

    @Override
    protected HospitalDepartDTO convert2DTO(HospitalDepartDO hospitalDepartDO) {
        return new HospitalDepartDTO(hospitalDepartDO);
    }

    @Override
    protected HospitalDepartDO convert2DO(HospitalDepartDTO hospitalDepartQuery) {
        return hospitalDepartQuery.convert2DO();
    }
}
